package com.itkim.YZUserInfo.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 账号管理对象 yz_user
 * 
 * @author itkim
 * @date 2024-06-04
 */
public class YzUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一标识 */
    @JsonFormat(shape = JsonFormat.Shape.STRING) //把Long类型转为String类型传输给前端
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long userId;

    /** 身份 */
    @Excel(name = "身份")
    private String permission;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 报名组别 */
    @Excel(name = "报名组别")
    private String group;

    /** 账号名 */
    @Excel(name = "账号名")
    private String userName;

    /** 账号密码 */
    @Excel(name = "账号密码")
    private String password;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPermission(String permission) 
    {
        this.permission = permission;
    }

    public String getPermission() 
    {
        return permission;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGroup(String group) 
    {
        this.group = group;
    }

    public String getGroup() 
    {
        return group;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("permission", getPermission())
            .append("school", getSchool())
            .append("name", getName())
            .append("group", getGroup())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("createTime", getCreateTime())
            .toString();
    }
}
